﻿using System.Collections.Generic;
using System.Linq;

namespace N2.Trac.Items
{
	partial class RequirementContainer
	{
		IEnumerable<Requirement> LatestItems {
			get {
				return (
					from _req in N2.Find.EnumerateTree(this).OfType<Requirement>()
					orderby _req.Updated descending
					select _req
				).Take(10);
			}
		}
	}
}
